import http from './request'
/******************************************风险分析对象************************************************* */
//获取数据
export const riskanalysisobject= (data, current, size) => {
    return http({
        url: '/api/riskanalysisobject/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
// 逻辑删除
export const riskanalysisobjectRemove = (ids) => {
    return http({
        url: `/api/riskanalysisobject/remove?ids=${ids}`,
        method: 'POST'
    })
}
//详情
export const riskanalysisobjectDetail = (id) => {
    return http({
        url: `/api/riskanalysisobject/detail?id=${id}`,
        method: 'GET'
    })
}
//提交
export const riskanalysisobjectSubmit = (data) => {
    return http({
        url: '/api/riskanalysisobject/submit',
        method: 'POST',
        data: data
    })
}
//风险分析对象下拉数据
export const riskanalysisobjectselectlist = (data) => {
    return http({
        url: '/api/riskanalysisobject/selectlist',
        method: 'POST',
        data: data
    })
}
/******************************************风险分析单元************************************************* */
//获取数据
export const riskanalysisunit= (data, current, size) => {
    return http({
        url: '/api/riskanalysisunit/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}

//详情
export const riskanalysisunitDetail = (id) => {
    return http({
        url: `/api/riskanalysisunit/detail?id=${id}`,
        method: 'GET'
    })
}
//提交
export const riskanalysisunitSubmit = (data) => {
    return http({
        url: '/api/riskanalysisunit/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const riskanalysisunitRemove = (ids) => {
    return http({
        url: `/api/riskanalysisunit/remove?ids=${ids}`,
        method: 'POST'
    })
}
//风险分析单元下拉数据
export const riskanalysisunitselectlist = (data) => {
    return http({
        url: '/api/riskanalysisunit/selectlist',
        method: 'POST',
        data: data
    })
}
/******************************************风险事件************************************************* */
//获取数据
export const riskevents= (data, current, size) => {
    return http({
        url: '/api/riskevents/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//详情
export const riskeventsDetail = (id) => {
    return http({
        url: `/api/riskevents/detail?id=${id}`,
        method: 'GET'
    })
}
//提交
export const riskeventsSubmit = (data) => {
    return http({
        url: '/api/riskevents/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const riskeventsRemove = (ids) => {
    return http({
        url: `/api/riskevents/remove?ids=${ids}`,
        method: 'POST'
    })
}
/******************************************风险管控措施************************************************* */
//获取数据
export const riskcontrolmeasures= (data, current, size) => {
    return http({
        url: '/api/riskcontrolmeasures/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}

//获取风险管控措施方式
export const riskcontrolclasslist= (data, current, size) => {
    return http({
        url: '/api/riskcontrolmeasures/classlist?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//详情
export const riskcontrolmeasuresDetail = (id) => {
    return http({
        url: `/api/riskcontrolmeasures/detail?id=${id}`,
        method: 'GET'
    })
}
//提交
export const riskcontrolmeasuresSubmit = (data) => {
    return http({
        url: '/api/riskcontrolmeasures/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const riskcontrolmeasuresRemove = (ids) => {
    return http({
        url: `/api/riskcontrolmeasures/remove?ids=${ids}`,
        method: 'POST'
    })
}
/******************************************风险排查主题************************************************* */
//获取数据
export const riskinvestigationtopic= (data, current, size) => {
    return http({
        url: '/api/riskinvestigationtopic/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//详情
export const riskinvestigationtopicDetail = (id) => {
    return http({
        url: `/api/riskinvestigationtopic/detail?id=${id}`,
        method: 'GET'
    })
}
//提交
export const riskinvestigationtopicSubmit = (data) => {
    return http({
        url: '/api/riskinvestigationtopic/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const riskinvestigationtopicRemove = (ids) => {
    return http({
        url: `/api/riskinvestigationtopic/remove?ids=${ids}`,
        method: 'POST'
    })
}
//修改启用
export const riskinvestigationtopicupdate = (data) => {
    return http({
        url: '/api/riskinvestigationtopic/update',
        method: 'POST',
        data: data
    })
}
/******************************************隐患排查计划************************************************* */
//获取数据
export const hazardinvestigationplanList= (data, current, size) => {
    return http({
        url: '/api/hazardinvestigationplan/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//详情
export const hazardinvestigationplanDetail = (id) => {
    return http({
        url: `/api/hazardinvestigationplan/detail?id=${id}`,
        method: 'GET'
    })
}
//提交
export const hazardinvestigationplanSubmit = (data) => {
    return http({
        url: '/api/hazardinvestigationplan/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const hazardinvestigationplanRemove = (ids) => {
    return http({
        url: `/api/hazardinvestigationplan/remove?ids=${ids}`,
        method: 'POST'
    })
}
/******************************************隐患排查任务************************************************* */
//获取数据
export const hazardinvestigationtaskList= (data, current, size) => {
    return http({
        url: '/api/hazardinvestigationtask/list?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//详情
export const hazardinvestigationtaskDetail = (id) => {
    return http({
        url: `/api/hazardinvestigationtask/detail?id=${id}`,
        method: 'GET'
    })
}
//提交
export const hazardinvestigationtaskSubmit = (data) => {
    return http({
        url: '/api/hazardinvestigationtask/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const hazardinvestigationtaskRemove = (ids) => {
    return http({
        url: `/api/hazardinvestigationtask/remove?ids=${ids}`,
        method: 'POST'
    })
}
/******************************************隐患整改shenp************************************************* */
//获取数据
export const hazard1rectificationapprovalList= (data, current, size) => {
    return http({
        url: '/api/hazard1rectificationapproval/listNew?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//详情
export const hazard1rectificationapprovalDetail = (id) => {
    return http({
        url: `/api/hazard1rectificationapproval/detail?id=${id}`,
        method: 'GET'
    })
}
//提交
export const hazard1rectificationapprovalSubmit = (data) => {
    return http({
        url: '/api/hazard1rectificationapproval/submit',
        method: 'POST',
        data: data
    })
}
// 逻辑删除
export const hazard1rectificationapprovalRemove = (ids) => {
    return http({
        url: `/api/hazard1rectificationapproval/remove?ids=${ids}`,
        method: 'POST'
    })
}
/******************************************风险分析************************************************* */
//获取数据 --管控措施
export const riskAnalysisgkcs= (data, current, size) => {
    return http({
        url: '/api/riskAnalysis/gkcs?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//获取数据 --风险事件
export const riskAnalysisfxsj= (data, current, size) => {
    return http({
        url: '/api/riskAnalysis/fxsj?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//获取数据 --风险单元
export const riskAnalysisfxdy= (data, current, size) => {
    return http({
        url: '/api/riskAnalysis/fxdy?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
//获取数据 --风险对象
export const riskAnalysisfxdx= (data, current, size) => {
    return http({
        url: '/api/riskAnalysis/fxdx?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}

// 考核统计 -- 成员
export const examineAnalysiscy= (data, current, size) => {
    return http({
        url: '/api/examineAnalysis/cy?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
// 考核统计 -- 组织
export const examineAnalysiszz= (data, current, size) => {
    return http({
        url: '/api/examineAnalysis/zz?current=' + current + '&size=' + size,
        method: 'POST',
        data
    })
}
// //详情
export const hazard1rectificationapprovaldetailById = (id) => {
    return http({
        url: `/api/hazard1rectificationapproval/detailById?id=${id}`,
        method: 'GET'
    })
}
//考核
export const hazard1rectificationapprovalexamine = (data) => {
    return http({
        url: '/api/hazard1rectificationapproval/examine',
        method: 'POST',
        data: data
    })
}
// // 逻辑删除
// export const hazard1rectificationapprovalRemove = (ids) => {
//     return http({
//         url: `/api/hazard1rectificationapproval/remove?ids=${ids}`,
//         method: 'POST'
//     })
// }